package com.lcxedu.notebook.service.impl;

import com.lcxedu.notebook.entity.EventCategory;
import com.lcxedu.notebook.mapper.EventCategoryMapper;
import com.lcxedu.notebook.service.EventCategoryMapperService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Title: EventCategoryMapperServiceImpl
 * @Author: 李晨曦
 * @Date: 2025/6/11
 * 好好看 好好学 都能学会 都能学好
 * 我亦无他 唯手熟尔
 */
@Service
public class EventCategoryMapperServiceImpl implements EventCategoryMapperService {
    @Resource
    private EventCategoryMapper eventCategoryMapper;

    @Override
    public List<EventCategory> selectAll() {
        return eventCategoryMapper.selectAll();
    }

    @Override
    public int insert(EventCategory record) {
        return eventCategoryMapper.insert(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return eventCategoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(EventCategory record) {
        return eventCategoryMapper.updateByPrimaryKeySelective(record);
    }
}
